@extends('admin')

@section('content')
    <div class="h_a">搜索</div>
    <div class="search_type cc mb10">
        <form action="{{url('admin/financial/order')}}" method="post" class="search_form">
            <label for="search_title">标题：</label><input type="text" name="keyword"       id="search_title" class="input length_2 mr10"/>
            {{ csrf_field() }}
            <button type="submit" class="btn">提交查询</button>
        </form>

    </div>
    <div class="table_list">
        <div id="data_list">
            <table class="items">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>理财产品</th>
                    <th>用户</th>
                    <th>电话</th>
                    <th>身份证号码</th>
                    <th>购买份数</th>
                    <th>状态</th>
                    <th>积分</th>
                    {{--<th>购务ID</th>--}}
                    <th>来源</th>
                    <th>更新时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach($items as $item)
                    <tr>
                        <td>{{$item->id}}</td>
                        <td>{{$item->title}}</td>
                        <td>{{$item->name}}</td>
                        <td>{{$item->mobile}}</td>
                        <td>{{$item->idNo}}</td>
                        <td>{{$item->number}}</td>
                        <td>{{$item->status}}</td>
                        <td>{{$item->obonus}}</td>
{{--                        <td>{{$item->serviceId}}</td>--}}
                        <td> @if( $item->source == 1 ) 网站 @else 微信 @endif </td>
                        <td>{{$item->updated_at}}</td>
                        <td>
                            <a href="{{url('admin/financial/del/'.$item->id)}}" class="mr10 J_ajax_del">[删除]</a>
                        </td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>

        <div class="summary">
            共有 {{$items->total()}} 条数据
        </div>
        @if ($items->hasPages())
            <div class="pager">
                {!! $items->render() !!}
            </div>
        @endif
    </div>

@stop